package com.example.baselibrary.db.dao;

import com.example.baselibrary.db.BTDBHelper;
import com.example.baselibrary.db.table.AccountTable;

import cc.vv.lklibrary.db.dao.DBBaseTableDao;
import cc.vv.lklibrary.db.help.DBBaseOpenHelper;

/**
 * 联系人信息维护维护
 *
 * @author: NPF
 * @date: 2018/3/30.
 */
public class AccountDao extends DBBaseTableDao<AccountTable, String> {
    public AccountDao(DBBaseOpenHelper openHelper) {
        super(openHelper);
    }


    private static AccountDao mInstance;

    public static AccountDao getInstance() {
        if (null == mInstance) {
            synchronized (AccountDao.class) {
                if (null == mInstance) {
                    mInstance = new AccountDao(BTDBHelper.getInstance());
                }
            }
        }
        return mInstance;
    }
}
